package com.djq.project.mq.consumer.rpc;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Rpc
 * 请求/回复模式示例
 */
@Configuration
public class RpcConfig {
    public static final String RPC_QUEUE_NAME = "rpc_queue";


    @Bean
    Queue queueRpc() {
        return new Queue(RPC_QUEUE_NAME);
    }
}
